package com.liangfeng.ysdemo.activity;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.ListView;

import com.liangfeng.ysdemo.EzvizApplication;
import com.liangfeng.ysdemo.R;
import com.videogo.exception.BaseException;
import com.videogo.openapi.EZOpenSDK;
import com.videogo.openapi.bean.EZDeviceInfo;

import java.util.List;

import rx.Observable;
import rx.Subscriber;
import rx.android.schedulers.AndroidSchedulers;
import rx.schedulers.Schedulers;

public class MainActivity extends AppCompatActivity {

    private EZOpenSDK openSDK;


    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);



//        EZOpenSDK.getInstance().openLoginPage();
        //获取EZOpenSDK的实例
        openSDK = EzvizApplication.getOpenSDK();
        openSDK.openLoginPage();
    }

}
